

# 俄罗斯方块变形推导
lst = [
    ['a1', 'a2', 'a3', 'a4'],
    ['b1', 'b2', 'b3', 'b4'],
    ['c1', 'c2', 'c3', 'c4'],
    ['d1', 'd2', 'd3', 'd4'],
]
# lst = [
#     ['a4', 'b4', 'c4', 'd4'],
#     ['a3', 'b3', 'c3', 'd3'],
#     ['a2', 'b2', 'c2', 'd2'],
#     ['a1', 'b1', 'c1', 'd1'],
# ]
# [['a4', 'b4', 'c4', 'd4'],
#  ['a3', 'b3', 'c3', 'd3'],
#  ['a2', 'b2', 'c2', 'd2'],
#  ['a1', 'b1', 'c1', 'd1']]

# 1 1   1,2   2 1
# 4 1   3,1   4 2

new_lst = [['','','',''],['','','',''],['','','',''],['','','','']]

for i, item in enumerate(lst):
    for j, v in enumerate(item):
        new_lst[3-j][i] = v

print(new_lst)




